package com.mofei.h003test;

import android.app.Application;
import android.content.Context;

import com.polidea.rxandroidble2.RxBleClient;

/**
 * @author : timmy
 * @date : 2018/9/20
 */
public class H003TestApplication extends Application {

    private RxBleClient mRxBleClient;


    public static final String CharacteristicUuid = "000056ff-0000-1000-8000-00805f9b34fb";
    public static final String CHARACTERISTICUUID_NOTIFY = "000033f2-0000-1000-8000-00805f9b34fb";
    public static final String CHARACTERISTICUUID_WRITE = "000033f1-0000-1000-8000-00805f9b34fb";

    @Override
    public void onCreate() {
        super.onCreate();

        mRxBleClient = RxBleClient.create(this);
    }

    public static RxBleClient getRxBleClient(Context context) {
        H003TestApplication application = (H003TestApplication) context.getApplicationContext();
        return application.mRxBleClient;
    }
}
